package com.puman.beautyfarmcounselor.ui.setting;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;

import com.puman.beautyfarmcounselor.MainActivity;
import com.puman.beautyfarmcounselor.R;
import com.puman.beautyfarmcounselor.ui.core.BaseFragment;

import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EFragment;
import org.androidannotations.annotations.ViewById;


/**
 * A placeholder fragment containing a simple view.
 */
@EFragment(R.layout.reset_layout)
public class ResetFragment extends BaseFragment{

    @ViewById(R.id.back_btn)
    ImageView backBtn;
    @ViewById(R.id.base_title)
    TextView title;

    public ResetFragment() {
    }

    @AfterViews
    void updateView() {
        title.setText("找回密码");
        backBtn.setVisibility(View.VISIBLE);
    }

    @Click(R.id.back_btn)
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.back_btn:
                MainActivity.getInstace().getSupportFragmentManager().popBackStack();
                break;
        }
        keyboardTakeBack(view);
    }
}
